/*
 * @Description:工作台管理
 */
import request from '@/utils/request'
export default {
    //添加
    add(data) {
        return request.post(`/fish/base/userFrequentlyUsedMenu/add`, { ...data })
    },
    //批量删除
    delById(id) {
        return request.get(`/fish/base/userFrequentlyUsedMenu/delById?id=${id}`)
    },
    // 询登录用户常用菜单
    queryByLoginUser() {
        return request.get(`/fish/base/userFrequentlyUsedMenu/queryByLoginUser`)
    },
    // 询登录模块
    queryModuleList() {
        return request.get(`/fish/base/userworktable/queryList`)
    },
    
    //菜单排序保存
    saveSort(idList) {
        return request.post(`/fish/base/userFrequentlyUsedMenu/saveSort`,idList)
    },
    //模块排序保存
    saveSortModule(idList) {
        return request.post(`/fish/base/userworktable/saveSort`,idList)
    },
    
    //预警记录分页查询
    warningRecordList(data) {
        data.entity = !data.entity ? {} : data.entity
        return request.post(`/fish/task/warningRecord/queryPageByCondition`, { ...data })
    }
};
